Skip to content

Conversation

@douzzer
Copy link
Contributor

@douzzer douzzer commented Aug 6, 2020

expose an error-checking wc_curve25519() routine for use by Wireguard, and shuffle some names for clarity.

…xisting private key, using bare vectors."; rename existing _LOCAL functions wc_curve25519_GetBasePoint() and wc_curve25519() to nxp_ltc_curve25519_GetBasePoint() and nxp_ltc_curve25519() respectively; add const qualifiers opportunistically to existing _LOCAL function curve25519()
@douzzer douzzer requested a review from JacobBarthelmeh August 6, 2020 00:09
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent addition! I built against NXP K82 and found a few issues.

douzzer added 3 commits August 6, 2020 11:35
…s correct curve25529_bCurveParam) introduced in aadec34.
…_KEYSIZE, not CURVE25519_KEY_SIZE; add static kCurve25519BasePoint at top level
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Builds correctly for K82 LTC now. Don't have hardware to test on but it does fix an outstanding build error for it.

Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the new function go ahead and add in a test case. This could be to either wolfcrypt/test/test.c or to tests/api.c.

…wc_curve25519(), for clarity and consistency (hat tip to Jacob).
@douzzer douzzer changed the title Add an error-checking wc_curve25519() routine to the API for use by Wireguard Add an error-checking wc_curve25519_make_pub() routine to the API for use by Wireguard Aug 6, 2020
douzzer added 5 commits August 6, 2020 17:49
…bs; remove weird extra string-terminating null in test_wolfSSL_sk_CIPHER_description().
…complete the pair. also, add call to fe_init() in the non-NXP codepath of wc_curve25519_make_pub() (note fe_init() is currently a no-op).
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Douzzer, this is a great addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants